package ${package.Service};

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import ${package.Entity}.${entity};
import com.baoyouqun.domain.VO.${entity}VO;
import com.baoyouqun.domain.CreateCmd.${entity}CreateCmd;
import com.baoyouqun.domain.UpdateCmd.${entity}UpdateCmd;
import com.baoyouqun.domain.Query.${entity}Query;
import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;

import java.math.BigDecimal;

public interface ${table.serviceName} extends IService

<${entity}> {

    /**
     * 新增并返回实体
     */
    SingleResponse<${entity}VO> create (${entity}CreateCmd cmd);

    Response update (${entity}UpdateCmd cmd);

    /**
     * 根据ID查询VO
     */
    ${entity}VO selectById (String id);

    /**
     * 分页查询VO
     */
    IPage<${entity}VO> pageVo (${entity}Query query);
}